<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/att.tld" prefix="att"%>
<html>
<head>
	<meta name="decorator" content="moduleView" />
</head>
<body>

  <div class="Report_f">
        <div class="Report_f_1">
             <div class="Report_f_title_1">评审记录信息</div>
             <div class="o-l-search-builder f_1">
		    	  <button type="button" class="btn btn-danger btn_5 btn_right" onclick="history.go(-1)">返&nbsp;回</button>
	              <button type="button" class="btn btn-danger btn_5 btn_right" onclick="Oosp_DelAll('${contextPath}/biz/brand/brandreview/${brandReview.id}/delete','table1')">删&nbsp;除</button>
	              <button type="button" class="btn btn-info btn_5 btn_right" onclick="window.open('${contextPath}/biz/brand/brandreview/${brandReview.id}/edit','_self')">修&nbsp;改</button>
       		</div> 
       		
		    <ul class="nav nav-tabs Report_f_title_2">
			  <li class="active"><a href="#home" data-toggle="tab">基本信息</a></li>
			  <li><a href="#shopList" data-toggle="tab">可合作门店</a></li>
  			  <li><a href="#workflow" data-toggle="tab">流程审批</a></li> 
			  <li><a href="#diagram" data-toggle="tab">流程图</a></li>
			</ul> 
		<div class="tab-content Report_f_title_3">
           <div class="Report_f_title_5">
            <div class="tab-content Report_f_title_3">
             <div class="tab-pane active" id="home">
                <div class="Report_f_title_4">
				  <table class="table table-bordered">
					  <tbody>
						  	<tr>
						  		<td class="text-right" style="width: 30%"><strong>品牌名称:</strong></td>
						  		<td>${brandReview.brandCname}</td>
						  	</tr>
						  	<tr>
						  		<td class="text-right" style="width: 30%"><strong>商品分类:</strong></td>
						  		<td>${brandReview.cateName}</td>
						  	</tr>
						  	<tr>
						  		<td class="text-right" style="width: 30%"><strong>评审编号:</strong></td>
						  		<td>${brandReview.reviewNo}</td>
						  	</tr>
						  	<tr>
						  		<td class="text-right" style="width: 30%"><strong>评审日期:</strong></td>
						  		<td><fmt:formatDate value="${brandReview.reviewDate}" pattern="yyyy-MM-dd"/></td>
						  	</tr>
						  	<tr>
						  		<td class="text-right" style="width: 30%"><strong>是否入库:</strong></td>
						  		<td><ossp:value dictType="YESORNO" key="${brandReview.isStorage}"/></td>
						  	</tr>
						  	<tr>
						  		<td class="text-right" style="width: 30%"><strong>是否目标引进品牌:</strong></td>
						  		<td><ossp:value dictType="YESORNO" key="${brandReview.isTargetBrand}"/></td>
						  	</tr>
						  	<tr>
						  		<td class="text-right" style="width: 30%"><strong>品牌等级:</strong></td>
						  		<td>${brandReview.levelName}</td>
						  	</tr>
						  	<tr>
						  		<td class="text-right" style="width: 30%"><strong>引进品牌责任人:</strong></td>
						  		<td>${brandReview.personLiable}</td>
						  	</tr>
						  	<tr>
						  		<td class="text-right" style="width: 30%"><strong>可合作门店:</strong></td>
						  		<td>
						  			<%--<c:forEach items="${brandReview.brandCheckinShops}" var="csItem" varStatus="status">
										<div style="float: left;width: 200px">
											${csItem.shopName}
										</div>
									</c:forEach> --%>
						  		</td>
						  	</tr>
						  	<tr>
						  		<td class="text-right" style="width: 30%"><strong>评审结论:</strong></td>
						  		<td>${brandReview.reviewResult}</td>
						  	</tr>
						  	<tr>
						  		<td class="text-right" style="width: 30%"><strong>备注:</strong></td>
						  		<td>${brandReview.remark}</td>
						  	</tr>
						  </tbody>
					</table>
				</div>
			</div>
			<div class="tab-pane" id="shopList">
					<div class="Report_f_title_4">
					<table class="table table-bordered">
						<thead>
							<tr>
								<th>门店编码</th>
								<th>门店名称</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${brandReview.brandCheckinShops}" var="item"
								varStatus="var">
								<tr>
									<td>${item.shopNo}</td>
									<td>${item.shopName}</td>
								</tr>
							</c:forEach>
						</tbody>					
						</table>
				</div>
				</div>
				
				<div class="tab-pane" id="workflow"> 
					<c:import url="/WEB-INF/views/bpm/workflow/workFlowInfo_view.jsp">
						<c:param name="formName" value="com.maoye.ossp.biz.brand.entity.BrandReview" />
						<c:param name="flowKey" value="IBrandReview" />
						<c:param name="businessId" value="${brandReview.id}"/>
						<c:param name="method" value="${method}"/>
						<c:param name="isStart" value="${isStart}"/>
					</c:import> 	
				</div>
				<div class="tab-pane" id="diagram" style="overflow-x:auto;">
					<iframe id="diagram_iframe" scrolling="no" frameborder=0 width="100%">
					</iframe>
				</div>
		</div> 
	</div>	
	</div>
</div> 
</div>	
</body>
</html>